projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a187be6
)
Issue error if interpolate filter has no routes or tracks to operate on.
author
Robert Lipe
<robertlipe@gpsbabel.org>
Tue, 19 Jul 2016 19:13:35 +0000
(14:13 -0500)
committer
Robert Lipe
<robertlipe@gpsbabel.org>
Tue, 19 Jul 2016 19:13:35 +0000
(14:13 -0500)
interpolate.cc
patch
|
blob
|
history
diff --git
a/interpolate.cc
b/interpolate.cc
index 4c39be8c237643448ca888667d6a99f71df20bd9..646c3747618230f2232689308ef22677967015d6 100644
(file)
--- a/
interpolate.cc
+++ b/
interpolate.cc
@@
-74,6
+74,11
@@
interpfilt_process(void)
track_backup(&count, &backuproute);
route_flush_all_tracks();
}
+
+ if (count == 0) {
+ fatal(MYNAME ": Found no routes or tracks to operate on.\n");
+ }
+
QUEUE_FOR_EACH(backuproute, elem, tmp) {
route_head* rte_old = (route_head*)elem;